﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace SmartPaginator.Elements
{
    public class PaginationInfo
    {
        #region Constructor

        public PaginationInfo()
        { 

        }

        #endregion

        #region Properties

        public int SectionGroupIndex { get; set; }

        public int PageNumber { get; set; }

        public int TotalPages { get; set; }

        #endregion

        #region ToString Method

        public override string ToString()
        {
            if (SectionGroupIndex == 0)
                return "";

            return String.Format("Page {0} of {1}", PageNumber, TotalPages);
        }
        #endregion
    }
}
